package com.kevin.rocketmq;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * @author Kevin Liu
 * @date 2020/10/21 11:46 上午
 */
@Component
@Service
@RocketMQMessageListener(topic = "test-topic-1", consumerGroup = "my-consumer_test-topic-1")
public class Consumer implements RocketMQListener<String> {


    @Override
    public void onMessage(String str) {

    }
}
